package com.jumi.microservice.common.exception;

/**
 * 供应链服务异常抛出类
 * @author ssk
 * @create 2020/8/13 15:32
 **/
public class ExceptionSupply extends Throwable implements BusinessExceptionAssert{
    private final Integer code;

    private final String message;

    public ExceptionSupply(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
